package lab02.test37;

public class Undergraduate extends Student {

    @Override
    public void calculateGrade(int[] grade) {
        sort = "本科生";
        double total = 0;
        double average;
        for (int i = 0; i < 3; i++) {
            total += grade[i];

        }

        average = total / 3;
        if (average > 60) {
            System.out.println("你能毕业");
        } else
            System.out.println("拿不到毕业证了");
    }
}
